class CommonResponse(object):
    def __init__(self, code, msg, data):
        self.code = code
        self.msg = msg
        # 这里的data要用dict，不然CommonResponse.__dict__时内部有class返回会失败
        self.data = data.__dict__

# 执行成功的状态码
successCode = 1
# 执行成功的msg
successMsg = ""
# 执行失败的状态码
errorCode = 0
